<!DOCTYPE html>
<%@page import="com.faeple.util.SessionManager"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page language="java" contentType="text/html;  charset=utf-8" pageEncoding="utf-8"%>
<html lang="ko">
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	
	<title>Faeple</title>
	
	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
	<!--[if lt IE 9]>
		<script src="/resources/js/html5shiv.js"></script>
		<script src="/resources/js/respond.min.js"></script>
	<![endif]-->
	<link href='http://fonts.googleapis.com/css?family=Alef' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="/resources/css/font-awesome.css">
	<link rel="stylesheet" href="http://fonts.googleapis.com/earlyaccess/nanumgothic.css">
	<style type="text/css">
		body {
			color:#333;
		}
	</style>
</head>
<body>
<%@ include file="menu.jsp" %>

<div class="container">
	<div class="page-header">
		<h2 id="tables">공지사항</h2>
    </div>
	<div>
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">${notice.title}</h3>
			</div>
			<div class="panel-body">
				${notice.content}
			</div>
		</div>
	</div>
	<div>
		<div style="float:left;">
			<a href="/config/admin/notice" class="btn btn-default">목록</a>
		</div>
		<div style="float:right;">
			<button type="button" class="btn btn-danger" onclick="noticeDelete()">삭제</button>
			<a href="noticeUpdateForm?idx=${notice.idx}" class="btn btn-default">수정</a>
		</div>
		<div class="clearfix"></div>
	</div>
</div>
</body>
<script src="/resources/js/jquery-1.11.0.js"></script>
<script src="/resources/js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="/resources/js/bootstrap.js"></script>
<script type="text/javascript">
	$(function(){
		$(".navbar-nav").children("li").eq(4).addClass("active");
	});
	
	function noticeDelete(){
		if(confirm("정말로 삭제하시겠습니까?")){
			location.href="/config/admin/noticeDelete?idx=${notice.idx}";
		}
	}
</script>
</html>